#ifndef BILLLISTVIEW_H
#define BILLLISTVIEW_H

#include <QWidget>
#include <QListView>
#include <QStyledItemDelegate>

class BillListDelegate: public QStyledItemDelegate {
public:
    void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const override;
    QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const override;
};

class BillListModel: public QAbstractListModel {
public:
    int rowCount(const QModelIndex& parent) const override;
    QVariant data(const QModelIndex& index, int role) const override;
};

class BillListView : public QListView
{
    Q_OBJECT
public:
    explicit BillListView(QWidget *parent = nullptr);

private:
    BillListDelegate* m_delegate;
    BillListModel* m_model;

signals:
};





#endif // BILLLISTVIEW_H
